package tsing.javase.controller;

import com.alibaba.fastjson.JSONObject;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import tsing.javase.annotation.Student;


/**
 * @Author Tsing/吴清平
 * @Date 2022/10/13 14:25
 * @Version 1.0
 */

//@RestController
public class AopTestController {
    private static final Logger  log = LoggerFactory.getLogger(AopTestController.class);

//    @LogAnnotation
//    @RequestMapping("/aop")
    public String  aopTestMethod( Student student){
        log.info("student is"+student.toString());
        student.setName("吴大帅");
        return JSONObject.toJSONString(student);
    }
}
